/* eslint-disable @typescript-eslint/no-var-requires */
const path = require("path");
function resolve(dir) {
  return path.join(__dirname, dir);
}
module.exports = {
  publicPath: "./",
  runtimeCompiler: true,
  css: {
    loaderOptions: {
      scss: {
        prependData: `@import "~@/styles/variables.scss";`
      }
    }
  },
  chainWebpack: config => {
    config.resolve.alias
      .set(
        "@vue-basic-components/core",
        resolve("./node_modules/@vue-basic-components/packages/core")
      )
      .set(
        "@vue-basic-components/components",
        resolve("./node_modules/@vue-basic-components/packages/components")
      );
  }
};
